package service

import (
	"net/http"

	"github.com/gin-gonic/gin"
)

const baseUrl_country = "http://10.93.1.46/wjzwfw/rest/"

var Token string

func GetOneMachineCountry(c *gin.Context) {
	url := baseUrl_country + "changsanjiaohall/oneMachineCountry"
	data := []byte(`{"params":{"areacode": "320509" }}`)
	Response, _ := Post[OneMachineCountryResponse](url, data, c)
	c.JSON(http.StatusOK, SuccessResponse(Response))
}
